package model
{
	import model.Enseignant;
	import model.Enseignement;
	
	[RemoteClass(alias="model.Service")]
	[Bindable] 
	public class Service
	{
		private var m_id_service			:Number;
		private var m_duree_service			:Number = 0;
		private var m_etre_realise			:Boolean = false;
		private var m_id_an_etude			:Number;
		private var m_id_enseignement		:Number;
		private var m_id_enseignant			:Number;
		private var m_aAnneeEtude			:AnneeEtude;
		private var m_aEnseignant			:Enseignant;
		private var m_aEnseignement			:Enseignement;
		private var m_collSeances			:Array;
		private var m_nom_annee_etude		:String;
		private var m_nb_h_prog				:Number;
		
		public function Service()
		{
			
		}
		
		public function get nom_annee_etude():String{
			return m_nom_annee_etude;
		}
		
		public function set nom_annee_etude(value:String):void{
			m_nom_annee_etude = value;
		}
		
		public function get id_service():Number{
			return m_id_service;
		}
		
		public function set id_service(value:Number):void{
			m_id_service = value;
		}
		
		public function get duree_service():Number{
			return m_duree_service;
		}
		
		public function set duree_service(value:Number):void{
			m_duree_service = value;
		}
		
		public function get etre_realise():Boolean{
			return m_etre_realise;
		}
		
		public function set etre_realise(value:Boolean):void{
			m_etre_realise = value;
		}
		
		public function get id_an_etude():Number{
			return m_id_an_etude;
		}
		
		public function set id_an_etude(value:Number):void{
			m_id_an_etude = value;
		}
		
		public function get id_enseignement():Number{
			return m_id_enseignement;
		}
		
		public function set id_enseignement(value:Number):void{
			m_id_enseignement = value;
		}
		
		public function get id_enseignant():Number{
			return m_id_enseignant;
		}
		
		public function set id_enseignant(value:Number):void{
			m_id_enseignant = value;
		}
		
		public function get aAnneeEtude():AnneeEtude{
			return m_aAnneeEtude;
		}
		
		public function set aAnneeEtude(value:AnneeEtude):void{
			m_aAnneeEtude = value;
		}
		
		public function get aEnseignant():Enseignant{
			return m_aEnseignant;
		}
		
		public function set aEnseignant(value:Enseignant):void{
			m_aEnseignant = value;
		}
		
		public function get aEnseignement():Enseignement{
			return m_aEnseignement;
		}
		
		public function set aEnseignement(value:Enseignement):void{
			m_aEnseignement = value;
		}
		
		public function get collSeances():Array{
			return m_collSeances;
		}
		
		public function set collSeances(value:Array):void{
			m_collSeances = value;
		}
		
		public function set nb_h_prog(value:Number):void{
			m_nb_h_prog = value;
		}
		
		public function get nb_h_prog():Number{
			return m_nb_h_prog;
		}
		
		public function toString():String
		{
			var output:String = "";
			output += m_aEnseignement.aMatiere.nom+" - ";
			output += m_aEnseignant.nom+" "+m_aEnseignant.prenom+" - ";
			output += m_aEnseignement.aTypeEnseignement.libelle+" - ";
			output += nb_h_prog+"/"+m_duree_service+" heure(s) effectuée(s)";
			return output;
		}
	}
}